Embedding a Video file
You can embed a video that you have on file into your DITA source document.
To embed a video from your file directory:
- Create the an
objecttag for the video, for example:<object></object> - Next you are going to want to specify certain attributes for your video
object- If want to set a stylename, set the
outputclassattribute to whatever stylename you want to give it. - Specify what width and height you want to give to your video in the width and height attributes
- Set the
dataattribute to the path to the video file relative to the source file - For example:
<object outputclass="Foo" width="560" height="320" data="../../Video/small.mp4"></object>
- Optional: if you want controls on your video include the following param tag inside your
objecttag:<param name="controls" value="true">
The following is a fully working code example of the previous steps:
<object outputclass="Foo" width="560" height="320" data="../../Video/small.mp4">
<param name="allowFullScreen" value="true" />
<param name="controls" value="true" />
</object>Last modified date: 01/28/2026